package sctu.edu.java.year2016.team01.xuhanmei.day20160616;

import java.util.Calendar;
import java.util.Date;
import java.util.GregorianCalendar;

/**
 * Created by Administrator on 2016/6/16.
 */
public class LearnCalendar {
    public static void main(String[] args) {
        Calendar c=new GregorianCalendar();
        c.set(2016,06,16,23,28,30);
        /*相当于c.set(Calendar.YEAR,2016);
        c.set(Calendar.YEAR,2016);
        c.set(Calendar.MONTH,06);
        c.set(Calendar.DATE,16);*/


        Date d=c.getTime();
        System.out.println(d);

        c.add(Calendar.DATE, 30);
        System.out.println(c);

    }
}
